<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="../../vue.js"></script>
    <title>Document</title>
  </head>
  <body>
    <!--生成14-22的页码 -->
    <!-- 不推荐在同一个元素上使用v-for和v-if，存在优先级的问题，v-for的优先级更高 -->

    <div id="app">
      <ul>
        <li v-for="item in 22" :key="item" v-if="item>=14">{{item}}</li>
      </ul>
    </div>
    <script>
      const vm = new Vue({
        el: '#app',
        data() {
          return {
            page: 1,
          };
        },
      });
    </script>
  </body>
</html>
